/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.barrientosjunior.massfilerenamer.parser.element;

import java.io.File;

/**
 *
 * @author Junior
 */
public class NameTagElement implements Element{

    private File file = null;

    private int startIndex = -1;
    private int endIndex = -1;

    public NameTagElement(int startIndex, int endIndex) {
        this.startIndex = startIndex;
        this.endIndex = endIndex;
    }

    @Override
    public String toString() {
        return this.file.getName().substring(startIndex, endIndex);
    }

    public void setFile(File file) {
        this.file = file;
    }

}
